<?php
/*
Chương trình: "Quản lý Hóa Đơn và in hóa đơn Trường Thành"
Tác giả: "Lê Phương"
Phiên bản: "1.0"
Tệp tin: "manage.tpl.php"
*/
if(defined("template")!=true)
{
	die('Template not found!');
}
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="template/css/style.css" type="text/css">
	<script src="template/js/jquery-latest.js"></script>
	<script language="JavaScript" type="text/javascript">
		function alertfunction()
		{
			var max_length=document.form1.elements['chkSelect[]'].length;
			var i,j;
			j=0;
			for(i=0;i<max_length;i++)
			{
				if(document.form1.elements['chkSelect[]'][i].checked==false)
				{
					j++;
				}
			}
			if(j==max_length)
			{
				alert('<?=$phase['please_select']?>');
				return false;
			}
		}
	</script>
</head>
<body>
	<table cellspacing="0" align="center" cellpadding="0" width="100%">
		<tr>
			<td width="50%" class="fr_2">
			<form name="form2" method="GET">
			<input type="hidden" name="menu" value="manage">
			<?=$phase['search_by_name']?><input type="text" name="search" size="30"><input type="submit" name="submit3" value="Tìm">
			</form>
			</td>
			<td width="50%" class="fr_2">
			<?=$phase['total_company']?><b><?=$total?></b>
			</td>
		</tr>
	<form name="form1" method="GET">
		<tr>
			<td width="100%" colspan="2">
				<table class="border" cellpadding="2" cellspacing="0" width="100%">
					<tr>
						<td colspan="7" class="title" align="center">
							<?=$phase['title_manage_company']?>
						</td>
					</tr>
					<tr>
						<td width="3%" height="48" align="center" valign="middle" class="footer"><strong><?=$phase['no']?></strong></td>
						<td width="2%" height="48" align="center" valign="middle" class="footer"><strong>Hành động</strong></td>
						<td width="31%" align="center" valign="middle" class="footer"><strong><?=$phase['company_name']?></strong></td>
						<td width="10%" align="center" valign="middle" class="footer"><strong><?=$phase['tax_code']?></strong></td>
						<td width="33%" align="center" valign="middle" class="footer"><strong><?=$phase['address']?></strong></td>
						<td width="8%" align="center" valign="middle" class="footer"><strong><?=$phase['form']?></strong></td>
						<td width="5%" align="center" valign="middle" class="footer"><strong><?=$phase['serial']?></strong></td>
					</tr>
						<?include ('includes/show.inc.php');?>
					<tr></tr>
					<tr></tr>
					<tr>
						<td colspan="7"><?include ('includes/page.inc.php');?></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	</form>
</body>
</html>